package org.hrqing.authorization.repo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hrqing.authorization.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

/**
 * @auther Hrqing
 */
public interface UserRepo extends JpaRepository<User, String>, JpaSpecificationExecutor<User> {

    Optional<User> findByUsernameOrCertNumberOrMobile(String username, String certNumber, String mobile);
}
